/*@cc_on
   /*@if (@_jscript_version == 5.6)
   try { document.execCommand('BackgroundImageCache', false, true); } catch(err) {};
   /*@end
@*/
var _uacct="UA-341691";if(Array.prototype.push==null){Array.prototype.push=function(){for(var i=0;i<arguments.length;i++){this[this.length]=arguments[i]}return this.length}}if(String.prototype.trim==null){String.prototype.trim=function(){return this.replace(/^\s+|\s+$/,"")}}var fd={};fd.isDOMsavvy=document.getElementById&&document.getElementsByTagName;fd.isIE=
/*@cc_on!@*/
false;fd.browserLang=String(navigator.language?navigator.language:navigator.userLanguage).toLowerCase().replace(/-[a-z]+$/,"")||"en";fd.addEvent=function(obj,evType,fn,useCapture){if(obj.addEventListener){obj.addEventListener(evType,fn,useCapture);return true}else{if(obj.attachEvent){var r=obj.attachEvent("on"+evType,fn);return r}}return false};fd.removeEvent=function(obj,evType,fn,useCapture){try{if(obj.removeEventListener){obj.removeEventListener(evType,fn,useCapture);return true}else{if(obj.detachEvent){var r=obj.detachEvent("on"+evType,fn);return r}}}catch(err){}return false};fd.stopEvent=function(e){e=e||document.parentWindow.event;if(e.stopPropagation){e.stopPropagation();e.preventDefault();
/*@cc_on@*/
/*@if(@_win32)
        e.cancelBubble = true;
        e.returnValue  = false;
        /*@end@*/
}return false};fd.addClass=function addClass(e,c){if(new RegExp("(^|\\s)"+c+"(\\s|$)").test(e.className)){return }e.className+=(e.className?" ":"")+c};fd.removeClass=function removeClass(e,c){e.className=!c?"":e.className.replace(new RegExp("(^|\\s*\\b[^-])"+c+"($|\\b(?=[^-]))","g"),"")};fd.onDomReady=function(){fd.addClass(document.getElementsByTagName("body")[0],"js-enabled");for(var module in fd){if(typeof fd[module].onDomReady=="function"){fd[module].onDomReady()}}};fd.onLoad=function(e){if("urchinTracker" in window){urchinTracker()}for(var module in fd){if(typeof fd[module].onLoad=="function"){fd[module].onLoad()}}};fd.onUnload=function(e){for(var module in fd){if(typeof fd[module].onUnload=="function"){fd[module].onUnload()}}};fd.onResize=function(e){for(var module in fd){if(typeof fd[module].onResize=="function"){fd[module].onResize()}}};fd.addCssFile=function(filename){var fileref=document.createElement("link");fileref.setAttribute("rel","stylesheet");fileref.setAttribute("type","text/css");fileref.setAttribute("href","/css/"+filename);if(typeof fileref!="undefined"){document.getElementsByTagName("head")[0].insertBefore(fileref,document.getElementsByTagName("head")[0].firstChild)}};fd.getInnerText=function(el){if(typeof el=="string"||typeof el=="undefined"){return el}if(el.innerText){return el.innerText}var txt="",i;for(i=el.firstChild;i;i=i.nextSibling){if(i.nodeType==3){txt+=i.nodeValue}else{if(i.nodeType==1&&i.nodeName!="NOSCRIPT"){txt+=fd.getInnerText(i)}}}return txt};fd.joinNodeLists=function(){if(!arguments.length){return[]}var nodeList=[];for(var i=0;i<arguments.length;i++){for(var j=0,item;item=arguments[i][j];j++){nodeList[nodeList.length]=item}}return nodeList};fd.truePosition=function(element){var pos=fd.cumulativeOffset(element);if(window.opera){return pos}var iebody=(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body,dsocleft=document.all?iebody.scrollLeft:window.pageXOffset,dsoctop=document.all?iebody.scrollTop:window.pageYOffset,posReal=fd.realOffset(element);return[pos[0]-posReal[0]+dsocleft,pos[1]-posReal[1]+dsoctop]};fd.realOffset=function(element){var t=0,l=0;do{t+=element.scrollTop||0;l+=element.scrollLeft||0;element=element.parentNode}while(element);return[l,t]};fd.cumulativeOffset=function(element){var t=0,l=0;do{t+=element.offsetTop||0;l+=element.offsetLeft||0;element=element.offsetParent}while(element);return[l,t]};fd.faviconise={imageCache:[],onLoad:function(){var aList=document.getElementsByTagName("a"),url,img,src;for(var i=0,a;a=aList[i];i++){if(a.className.search("faviconise")==-1||a.href.search("http:")==-1){continue}url=a.href.replace("http://","").match(/^[^\/]+/)[0];src="http://"+url+"/favicon.ico?a="+new Date().getTime();img=document.createElement("img");img.onerror=fd.faviconise.noImage;img.src=src;img.className="faviconised";img.alt="favicon for "+url;fd.faviconise.imageCache[fd.faviconise.imageCache.length]={url:src,img:img};a.parentNode.insertBefore(img,a.parentNode.firstChild)}},noImage:function(e){for(var i=0,obj;obj=fd.faviconise.imageCache[i];i++){if(obj.url==this.src){obj.img.onerror=null;obj.img.src="http://www.frequency-decoder.com/media/nofavicon.jpg";obj.img.alt="No favicon replacement image"}}},onUnload:function(e){for(var i=0,obj;obj=fd.faviconise.imageCache[i];i++){obj.img.onerror=null;obj.img=null}fd.faviconise.imageCache=null}};fd.imageRounder={onLoad:function(){var images=document.getElementsByTagName("img"),w,h,m,img,wrap,corner,bar,tmp,len=images.length,div=document.createElement("div"),c=["tl","tr","bl","br"],bs1=["lb","rb"],bs2=["tb","bb"],cnt=0;while(len--){img=images[len];if(img.className.search(/rounded/)==-1){continue}tmp=img.className.replace(/rounded/,"");img.className="";w=img.width||img.offsetWidth;h=img.height||img.offsetHeight;if(w<20||h<20){img.className=tmp;continue}wrap=div.cloneNode(false);wrap.className="imageWrap "+tmp;wrap.style.width=w+"px";wrap.style.height=h+"px";for(var i=0;i<4;i++){corner=div.cloneNode(false);corner.className=c[i];wrap.appendChild(corner);corner=null}if(h>20){for(i=0;i<2;i++){bar=div.cloneNode(false);bar.className=bs1[i];wrap.appendChild(bar);bar=null}}if(w>20){for(i=0;i<2;i++){bar=div.cloneNode(false);bar.className=bs2[i];wrap.appendChild(bar);bar=null}}if(img.parentNode.tagName=="A"){img=img.parentNode;img.className=""}m=18-((h+18)%18);if(m<18){m+=18}wrap.style.marginBottom=m+"px";wrap.appendChild(img.cloneNode(true));img.parentNode.replaceChild(wrap,img);wrap=img=null;cnt++}if(cnt){fd.addCssFile("imageRounder.css")}}};fd.scriptUpdate={a:null,toggle:0,v:"",onLoad:function(){var h4s=document.getElementById("content").getElementsByTagName("h4");if(!h4s.length){return }for(var i=0,h4;h4=h4s[i];i++){if(h4.firstChild.nodeValue.search(/v[0-9]+(\.[0-9]+)?/)!=-1){fd.scriptUpdate.v="Show Latest Change Only ("+h4.firstChild.nodeValue.match(/v[0-9]+(\.[0-9]+)?/)[0]+")";break}}if(!fd.scriptUpdate.v){h4s=h4=null;return }var ul=h4,lastUL=h4,cnt=0;while(ul.nextSibling){ul=ul.nextSibling;if(ul.tagName&&ul.tagName=="UL"){break}}if(!ul.tagName||ul.tagName!="UL"){return }while(ul.nextSibling){ul=ul.nextSibling;if(ul.tagName&&(ul.tagName=="UL"||ul.tagName=="H4")){ul.className=ul.className+" scriptUpdate";cnt++}else{if(ul.tagName){break}}}if(cnt){var p=document.createElement("p"),h2=document.createElement("h2");p.id="showHideScriptUpdate";fd.scriptUpdate.a=document.createElement("a");fd.scriptUpdate.a.href="#showHideScriptUpdate";fd.scriptUpdate.a.onclick=fd.scriptUpdate.showHide;p.appendChild(fd.scriptUpdate.a);h2.appendChild(document.createTextNode("ChangeLog"));lastUL.parentNode.insertBefore(h2,lastUL);lastUL.parentNode.insertBefore(p,lastUL);p=h2=null;fd.scriptUpdate.showHide()}},showHide:function(){var elems=fd.joinNodeLists(document.getElementById("content").getElementsByTagName("h4"),document.getElementById("content").getElementsByTagName("ul"));for(var i=0,elem;elem=elems[i];i++){if(elem.className.search("scriptUpdate")==-1){continue}elem.className=fd.scriptUpdate.toggle?elem.className.replace("noShow",""):elem.className+" noShow"}while(fd.scriptUpdate.a.firstChild){fd.scriptUpdate.a.removeChild(fd.scriptUpdate.a.firstChild)}var txt=fd.scriptUpdate.toggle?fd.scriptUpdate.v:"Show Entire ChangeLog";fd.scriptUpdate.a.appendChild(document.createTextNode(txt));fd.scriptUpdate.toggle=!fd.scriptUpdate.toggle;return false},onUnLoad:function(e){fd.scriptUpdate.a=null}};fd.commentTools={commentsPerPage:10,initMaxPages:9,maxPages:9,comments:[],currentPage:1,lastPage:-1,numPages:0,jump:null,text:["First Page","Previous Page (Page %p)","Next Page (Page %p)","Last Page (Page %t)","Page %p of %t"],buttonText:{first:"<",prev:"<",last:">",next:">"},parsed:false,focusedCnt:0,timer:null,timerHide:null,domReadyCalled:false,spanID:0,onDomReady:function(){var hook=document.getElementById("user-comments");if(!hook||fd.commentTools.domReadyCalled){return }var divs=hook.getElementsByTagName("div"),cnt=0,reg=/(^|\s)invisibleRow(\s|$)/,loc=window.location.href.search(/#c([0-9]{6})/)!=-1?"c"+window.location.href.match(/#c([0-9]{6})/)[1]:false,jmp=1;fd.commentTools.comments=[];for(var i=0,div;div=divs[i];i++){if(!div.id||div.id==""||div.id.search(/c([0-9]{6})/)==-1){continue}fd.commentTools.comments.push([div,""]);if(div.className.search(reg)==-1){cnt++}if(loc&&div.id==loc){fd.commentTools.jump=div.id;jmp=Math.floor(cnt/fd.commentTools.commentsPerPage)+1}
/*@cc_on
                        @if(@_jscript_version <= 5.6)
                                if(div.getElementsByTagName('div')[0].getElementsByTagName('span').length < 2) { continue; };
                                div.onmouseover = function(e) { this.getElementsByTagName('div')[0].getElementsByTagName('span')[0].style.display = 'inline'; };
                                div.onmouseout  = function(e) { this.getElementsByTagName('div')[0].getElementsByTagName('span')[0].style.display = 'none'; };
                                div.getElementsByTagName('span')[0].style.display = 'none';
                        @end
                        @*/
}if(fd.commentTools.comments.length>fd.commentTools.commentsPerPage){fd.commentTools.currentPage=jmp?jmp:1;fd.commentTools.buildCommentSearchBox();fd.commentTools.buildToolTip();fd.commentTools.init()}else{fd.commentTools.removePagination();fd.commentTools.comments=[]}fd.commentTools.domReadyCalled=true},calculateOnLoadPage:function(){if(fd.commentTools.comments.length&&window.location.href.search(/#c([0-9]{6})/)!=-1){var comment="c"+window.location.href.match(/#c([0-9]{6})/)[1],cnt=0,reg=/(^|\s)invisibleRow(\s|$)/;for(var i=0,c;c=fd.commentTools.comments[i][0];i++){if(c.className.search(reg)!=-1){continue}cnt++;if(c.id==comment){fd.commentTools.jump=c.id;return Math.floor(cnt/fd.commentTools.commentsPerPage)+1}}}return 0},highlightWord:function(node,word){if(node.hasChildNodes){var hi_cn;for(hi_cn=0;hi_cn<node.childNodes.length;hi_cn++){fd.commentTools.highlightWord(node.childNodes[hi_cn],word)}}if(node.nodeType==3){var tempNodeVal=node.nodeValue.toLowerCase();tempWordVal=String(word).toLowerCase();if(tempNodeVal.indexOf(tempWordVal)!=-1){var pn=node.parentNode;if(pn.className!="searchword"&&pn.tagName!="NOSCRIPT"){var nv=node.nodeValue,ni=tempNodeVal.indexOf(tempWordVal),before=document.createTextNode(nv.substr(0,ni)),docWordVal=nv.substr(ni,word.length),after=document.createTextNode(nv.substr(ni+word.length)),hiwordtext=document.createTextNode(docWordVal),hiword=document.createElement("span");hiword.className="searchword";hiword.appendChild(hiwordtext);hiword.title="Search results "+(fd.commentTools.spanID++);hiword.setAttribute(fd.isIE?"tabIndex":"tabindex",0);pn.insertBefore(before,node);pn.insertBefore(hiword,node);pn.insertBefore(after,node);pn.removeChild(node)}}}},removeHighlight:function(node){var spans=node.getElementsByTagName("span"),i=spans.length;while(i--){if(spans[i].className=="searchword"){spans[i].parentNode.replaceChild(document.createTextNode(spans[i].firstChild.nodeValue),spans[i])}}},parseComments:function(){var comments=fd.commentTools.comments;for(var i=0,comment;comment=comments[i];i++){comment[1]=fd.getInnerText(comment[0])}fd.commentTools.parsed=true},regExpEscape:function(s){function escape(e){a=new RegExp("\\"+e,"g");s=s.replace(a,"\\"+e)}var chars=["\\","[","^","$",".","|","?","*","+","(",")"];for(e in chars){escape(chars[e])}escape=null;return s},formSubmit:function(e){e=e||window.event;var txt=document.getElementById("fdToolTipText"),value=document.getElementById("commentSearch").value;value=value.trim().replace(/(\s)+/g," ");if(!value&&!fd.commentTools.parsed){return fd.stopEvent(e)}if(value&&value.length<4){fd.commentTools.showToolTip("A minimum of four characters is required&#8230;");fd.commentTools.timerHide=setTimeout(fd.commentTools.hideToolTip,5000);return fd.stopEvent(e)}txt.className="searching";clearTimeout(fd.commentTools.timerHide);fd.commentTools.timerHide=null;fd.commentTools.showToolTip((value?"Searching":"Clearing previous search")+"&#8230;");fd.commentTools.timer=setTimeout(fd.commentTools.commentSearch,50);return fd.stopEvent(e)},commentSearch:function(){var comments=fd.commentTools.comments,reg=/(^|\s)invisibleRow(\s|$)/,cnt=0,txt=document.getElementById("fdToolTipText"),value=document.getElementById("commentSearch").value,valCopy=value;if(value){try{value=new RegExp(fd.commentTools.regExpEscape(value),"gi")}catch(err){value=""}}if(!value&&!fd.commentTools.parsed){return }if(!fd.commentTools.parsed){fd.commentTools.parseComments()}fd.commentTools.spanID=1;for(var i=0,comment;comment=comments[i];i++){comment[0].className=comment[0].className.replace(reg,"");fd.commentTools.removeHighlight(comment[0]);if(!value||(value&&comment[1].search(value)!=-1)){cnt++;if(value){fd.commentTools.highlightWord(comment[0],valCopy)}}else{comment[0].className=comment[0].className+" invisibleRow"}}fd.commentTools.init(cnt);txt.className="";var msg;if(value&&!cnt){msg="No matches were located&#8230;"}else{if(!value){msg="No filter applied. Showing all "+fd.commentTools.comments.length+" comments&#8230;"}else{msg=(fd.commentTools.spanID-1==1?"One match ":(fd.commentTools.spanID-1)+" matches ")+"within "+(cnt==1?"one comment ":cnt+" comments ")+(fd.commentTools.spanID-1==1?"was":"were")+" located&#8230;"}}fd.commentTools.showToolTip(msg);fd.commentTools.timerHide=setTimeout(fd.commentTools.hideToolTip,5000)},onFocusEvent:function(){try{this.select()}catch(err){}if(fd.isIE){this.className=this.className+" focused"}if(fd.commentTools.focusedCnt++>3){return }if(!fd.commentTools.parsed&&fd.commentTools.comments.length>50){fd.commentTools.showToolTip("The first search might take a few moments as it has to grab the text of "+fd.commentTools.comments.length+" user comments. Subsequent searches will be markedly faster&#8230;")}else{fd.commentTools.showToolTip("Enter the phrase to search for and then press &#8220;ENTER&#8221;&#8230;")}clearTimeout(fd.commentTools.timerHide);fd.commentTools.timerHide=setTimeout(fd.commentTools.hideToolTip,5000)},onBlurEvent:function(){if(fd.isIE){this.className=this.className.replace("focused","")}clearTimeout(fd.commentTools.timerHide);fd.commentTools.timerHide=null;fd.commentTools.hideToolTip()},buildToolTip:function(){var div=document.createElement("div"),wrap=div.cloneNode(false),ids=["fdtl","fdtr","fdbl","fdbr","fdlb","fdrb","fdtb","fdbb","fddongle"],corner,txt;wrap.id="fdToolTipWrapper";for(var i=0;i<ids.length;i++){corner=div.cloneNode(false);corner.id=ids[i];wrap.appendChild(corner);corner=null}txt=document.createElement("p");txt.id="fdToolTipText";txt.appendChild(document.createTextNode(" "));wrap.appendChild(txt);wrap.style.left=wrap.style.top="-1000em";document.getElementsByTagName("body")[0].appendChild(wrap);wrap.style.visibility="visible";wrap.style.display="none"},changeToolTipText:function(msg){document.getElementById("fdToolTipText").innerHTML=msg},showToolTip:function(msg){clearTimeout(fd.commentTools.timerHide);fd.commentTools.timerHide=null;fd.commentTools.changeToolTipText(msg);var wrapper=document.getElementById("fdToolTipWrapper"),tlc=document.getElementById("fdtl"),dongle=document.getElementById("fddongle"),inp=document.getElementById("commentSearch");wrapper.style.visibility="hidden";wrapper.style.display="block";var cw=tlc.offsetWidth,w=500;wrapper.style.width=(w+(2*cw))+"px";var pos=fd.truePosition(inp);pos[0]-=(((w+(2*cw))-inp.offsetWidth)/2);var trueBody=(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body,scrollTop=window.devicePixelRatio||window.opera?0:trueBody.scrollTop,scrollLeft=window.devicePixelRatio||window.opera?0:trueBody.scrollLeft;if(parseInt(trueBody.clientWidth+scrollLeft)<parseInt(w+pos[0])){wrapper.style.left=Math.abs(parseInt((trueBody.clientWidth+scrollLeft)-w))+"px"}else{wrapper.style.left=pos[0]+"px"}wrapper.style.top=Math.abs(parseInt(pos[1]+(inp.offsetHeight-4)))+"px";dongle.style.left=(w/2)+"px";wrapper.style.visibility="visible"},hideToolTip:function(){document.getElementById("fdToolTipWrapper").style.display="none"},buildCommentSearchBox:function(){var hook=document.getElementById("user-comments"),box=document.createElement("input"),frm=document.createElement("form"),p=document.createElement("p"),lbl=document.createElement("label"),msg=document.createElement("p");frm.onsubmit=fd.commentTools.formSubmit;frm.action="";frm.method="post";frm.id="commentSearchForm";box.type="text";box.value="";box.maxlength=20;box.id="commentSearch";box.onfocus=fd.commentTools.onFocusEvent;box.onblur=fd.commentTools.onBlurEvent;box.setAttribute("autocomplete",false);lbl.appendChild(document.createTextNode("comment search:"));lbl.htmlFor="commentSearch";lbl.id="topLabel";msg.id="resultsMessage";p.appendChild(box);frm.appendChild(lbl);frm.appendChild(p);frm.appendChild(msg);hook.parentNode.insertBefore(frm,hook)},init:function(num){fd.commentTools.visibleComments=typeof num!="undefined"?num:fd.commentTools.calculateVisibleComments();fd.commentTools.maxPages=fd.commentTools.initMaxPages;if(fd.commentTools.visibleComments>fd.commentTools.commentsPerPage){var numPages=Math.ceil(fd.commentTools.visibleComments/fd.commentTools.commentsPerPage);if(numPages<2){fd.commentTools.removePagination();return }if(fd.commentTools.maxPages>numPages){fd.commentTools.maxPages=null}fd.commentTools.numPages=fd.commentTools.currentPage=numPages;fd.commentTools.showPage()}else{fd.commentTools.removePagination();for(var i=0,comment;comment=fd.commentTools.comments[i];i++){comment[0].style.display=""}var msg;if(!fd.commentTools.visibleComments){msg="No comments matched the search term"}else{msg="Showing all "+(fd.commentTools.visibleComments==fd.commentTools.comments.length?+fd.commentTools.comments.length+" comments":fd.commentTools.visibleComments+" visible comments ("+fd.commentTools.comments.length+" in total)")}document.getElementById("resultsMessage").innerHTML=msg}},calculateVisibleComments:function(){var comments=fd.commentTools.comments,len=comments.length,cnt=0,reg=/(^|\s)invisibleRow(\s|$)/;for(var i=0;i<len;i++){if(comments[i][0].className.search(reg)==-1){cnt++}}return cnt},createButton:function(details,ul,pseudo){var li=document.createElement("li"),but=document.createElement(pseudo?"div":"a"),span=document.createElement("span");if(!pseudo){but.href="#"}if(!pseudo){but.title=details.title}but.className=details.className;ul.appendChild(li);li.appendChild(but);but.appendChild(span);span.appendChild(document.createTextNode(details.text));if(!pseudo){li.onclick=but.onclick=fd.commentTools.buttonClick}if(!pseudo&&details.id){but.id=details.id}li=but=span=null},removePagination:function(){var wrapT=document.getElementById("fdtablePaginaterWrapTop");var wrapB=document.getElementById("fdtablePaginaterWrapBottom");if(wrapT){wrapT.parentNode.removeChild(wrapT)}if(wrapB){wrapB.parentNode.removeChild(wrapB)}},buildPagination:function(){function resolveText(txt,curr){curr=curr||fd.commentTools.currentPage;return txt.replace("%p",curr).replace("%t",fd.commentTools.numPages)}var findex=0,lindex=fd.commentTools.numPages;if(fd.commentTools.maxPages){findex=Math.max(0,Math.floor(Number(fd.commentTools.currentPage-1)-(Number(fd.commentTools.maxPages-1)/2)));lindex=findex+Number(fd.commentTools.maxPages);if(lindex>fd.commentTools.numPages){lindex=fd.commentTools.numPages;findex=Math.max(0,fd.commentTools.numPages-Number(fd.commentTools.maxPages))}}fd.commentTools.removePagination();var s=(fd.commentTools.currentPage==-1?0:fd.commentTools.currentPage-1)*fd.commentTools.commentsPerPage,e=Math.min(fd.commentTools.visibleComments,s+fd.commentTools.commentsPerPage);document.getElementById("resultsMessage").innerHTML="Showing comments "+(s+1)+" to "+e+" of "+(fd.commentTools.visibleComments==fd.commentTools.comments.length?" all "+fd.commentTools.comments.length+" comments":fd.commentTools.visibleComments+" visible comments ("+fd.commentTools.comments.length+" in total)");var wrapT=document.createElement("div");wrapT.className="fdtablePaginaterWrap";wrapT.id="fdtablePaginaterWrapTop";var wrapB=document.createElement("div");wrapB.className="fdtablePaginaterWrap";wrapB.id="fdtablePaginaterWrapBottom";var ulT=document.createElement("ul");ulT.id="fdtablePaginater";var ulB=document.createElement("ul");ulB.id="fdtablePaginaterClone";ulT.className=ulB.className="fdtablePaginater";wrapT.appendChild(ulT);wrapB.appendChild(ulB);if(fd.commentTools.maxPages){fd.commentTools.createButton({title:fd.commentTools.text[0],className:"first-page",text:"\u00ab"},ulT,!findex);fd.commentTools.createButton({title:fd.commentTools.text[0],className:"first-page",text:"\u00ab"},ulB,!findex)}if(fd.commentTools.numPages>2){fd.commentTools.createButton({title:resolveText(fd.commentTools.text[1],fd.commentTools.currentPage-1),className:"previous-page",text:"\u2039",id:"previousPageT"},ulT,fd.commentTools.currentPage==1);fd.commentTools.createButton({title:resolveText(fd.commentTools.text[1],fd.commentTools.currentPage-1),className:"previous-page",text:"\u2039",id:"previousPageB"},ulB,fd.commentTools.currentPage==1)}for(var i=findex;i<lindex;i++){fd.commentTools.createButton({title:resolveText(fd.commentTools.text[4],i+1),className:i!=(fd.commentTools.currentPage-1)?"page-"+(i+1):"currentPage page-"+(i+1),text:(i+1),id:i==(fd.commentTools.currentPage-1)?"currentPageT":""},ulT);fd.commentTools.createButton({title:resolveText(fd.commentTools.text[4],i+1),className:i!=(fd.commentTools.currentPage-1)?"page-"+(i+1):"currentPage page-"+(i+1),text:(i+1),id:i==(fd.commentTools.currentPage-1)?"currentPageB":""},ulB)}if(fd.commentTools.numPages>2){fd.commentTools.createButton({title:resolveText(fd.commentTools.text[2],fd.commentTools.currentPage+1),className:"next-page",text:"\u203a",id:"nextPageT"},ulT,fd.commentTools.currentPage==fd.commentTools.numPages);fd.commentTools.createButton({title:resolveText(fd.commentTools.text[2],fd.commentTools.currentPage+1),className:"next-page",text:"\u203a",id:"nextPageB"},ulB,fd.commentTools.currentPage==fd.commentTools.numPages)}if(fd.commentTools.maxPages){fd.commentTools.createButton({title:resolveText(fd.commentTools.text[3],fd.commentTools.numPages),className:"last-page",text:"\u00bb"},ulT,lindex==fd.commentTools.numPages);fd.commentTools.createButton({title:resolveText(fd.commentTools.text[3],fd.commentTools.numPages),className:"last-page",text:"\u00bb"},ulB,lindex==fd.commentTools.numPages)}document.getElementById("user-comments").insertBefore(wrapT,document.getElementById("user-comments").firstChild);document.getElementById("user-comments").appendChild(wrapB)},showPage:function(pageNum){var page=Math.max(0,!pageNum?fd.commentTools.currentPage-1:pageNum-1),min=!page?0:Math.max(0,page*fd.commentTools.commentsPerPage),max=min+fd.commentTools.commentsPerPage,cnt=0,reg=/(^|\s)invisibleRow(\s|$)/;for(var i=0,comment;comment=fd.commentTools.comments[i];i++){if(comment[0].className.search(reg)!=-1){continue}cnt++;comment[0].style.display=cnt>=min&&cnt<=max?"":"none"}fd.commentTools.buildPagination()},buttonClick:function(e){e=e||window.event;var a=this.tagName.toLowerCase()=="a"?this:this.getElementsByTagName("a")[0];if(a.className.search("currentPage")!=-1){return false}var ul=this;while(ul.tagName.toLowerCase()!="ul"){ul=ul.parentNode}fd.commentTools.lastPage=fd.commentTools.currentPage;var showPrevNext=0;if(a.className.search("previous-page")!=-1){fd.commentTools.currentPage=fd.commentTools.currentPage>1?fd.commentTools.currentPage-1:fd.commentTools.numPages;showPrevNext="previous"}else{if(a.className.search("next-page")!=-1){fd.commentTools.currentPage=fd.commentTools.currentPage<fd.commentTools.numPages?fd.commentTools.currentPage+1:1;showPrevNext="next"}else{if(a.className.search("first-page")!=-1){fd.commentTools.currentPage=1}else{if(a.className.search("last-page")!=-1){fd.commentTools.currentPage=fd.commentTools.numPages}else{fd.commentTools.currentPage=parseInt(a.className.match(/page-([0-9]+)/)[1])||1}}}}fd.commentTools.showPage();var elem;if(showPrevNext){elem=document.getElementById((ul.id.search("tablePaginaterClone")!=-1)?showPrevNext+"PageB":showPrevNext+"PageT")}if(!elem||(elem&&elem.tagName&&elem.tagName.toLowerCase()!="a")){elem=document.getElementById((ul.id.search("tablePaginaterClone")!=-1)?"currentPageB":"currentPageT")}if(elem&&elem.tagName.toLowerCase()=="a"){elem.focus()}return fd.stopEvent(e)},onUnLoad:function(e){fd.commentTools.comments=null}};function RESTrequest(url){this.url=url;this.id="RESTrequest-"+RESTrequest.RESTrequestId++;this.noCache="&noCacheIE="+(new Date()).getTime();this.scriptObj=document.createElement("script");this.scriptObj.setAttribute("type","text/javascript");this.scriptObj.setAttribute("charset","utf-8");this.scriptObj.setAttribute("src",this.url);this.scriptObj.setAttribute("id",this.id);document.getElementsByTagName("head").item(0).appendChild(this.scriptObj)}RESTrequest.prototype.removeScript=function(){document.getElementsByTagName("head").item(0).removeChild(this.scriptObj)};RESTrequest.RESTrequestId=0;fd.flickry={url:"http://api.flickr.com/services/rest/?method=flickr.people.getPublicPhotos&api_key=ba866f4619559410d8b2c98f71afb85f&user_id=84708626%40N00&per_page=9&page=1&format=json&jsoncallback=fd.flickry.callback&random="+Math.floor(Math.random()*1000),RESTrequest:null,timer:null,callback:function(JSONdata){clearTimeout(fd.flickry.timer);fd.flickry.RESTrequest.removeScript();fd.flickry.RESTrequest=null;if(!JSONdata.stat||JSONdata.stat!="ok"){return }var scf=document.getElementById("flickr-stream-wrapper");if(!scf){return }scf.className="";var img=document.createElement("img"),div=document.createElement("div"),a=document.createElement("a"),spn=document.createElement("span"),url="http://farm{farm-id}.static.flickr.com/{server-id}/{id}_{secret}_[mstb].jpg",cnt=1,imgN,divN,aN;div.className="flickr_badge_image";for(var i=0,photo;photo=JSONdata.photos.photo[i];i++){imgN=img.cloneNode(false);divN=div.cloneNode(true);aN=a.cloneNode(false);imgN.alt="Flickr image";imgN.style.visibility="hidden";imgN.onload=fd.flickry.startImgFade;imgN.src=url.replace("{farm-id}",photo.farm).replace("{server-id}",photo.server).replace("{id}",photo.id).replace("{secret}",photo.secret).replace("[mstb]","s");divN.id="flickr_badge_image"+cnt++;aN.href="http://www.flickr.com/photos/frequency-decoder/"+photo.id+"/";aN.title=photo.title;scf.appendChild(divN);divN.appendChild(aN);aN.appendChild(imgN);aN.appendChild(spn.cloneNode(false))}divN=imgN=img=div=a=spn=scf=null},startImgFade:function(){fd.fadeIn.init(this)},responseTimeOut:function(){var scf=document.getElementById("flickr-stream-wrapper");if(scf.getElementsByTagName("img").length){return }scf.parentNode.removeChild(scf);scf=fd.flickry.timer=null},onLoad:function(){var sb=document.getElementById("sidebar");if(!sb||document.getElementsByTagName("body")[0].id=="full-oddity"){return }var div=document.createElement("div");div.id="flickr-stream-wrapper";div.className="loading-flickr";sb.insertBefore(div,sb.firstChild);fd.flickry.RESTrequest=new RESTrequest(fd.flickry.url);fd.flickry.timer=setTimeout(fd.flickry.responseTimeOut,20000)}};fd.fadeIn={ids:0,objBag:{},timer:null,init:function(obj){if(!obj.id){obj.id="fi_"+fd.fadeIn.ids++}if(!(obj.id in fd.fadeIn.objBag)){fd.fadeIn.objBag[obj.id]={obj:obj,op:0}}fd.fadeIn.setOpacity(obj,0);obj.style.visibility="visible";if(fd.fadeIn.timer==null){fd.fadeIn.fadeIn()}},setOpacity:function(obj,opacity){opacity=(opacity==100)?99.999:opacity;obj.style.filter="alpha(opacity:"+opacity+")";obj.style.KHTMLOpacity=opacity/100;obj.style.MozOpacity=opacity/100;obj.style.opacity=opacity/100},fadeIn:function(){var recall=false;for(elem in fd.fadeIn.objBag){if(fd.fadeIn.objBag[elem].op<=100){fd.fadeIn.setOpacity(fd.fadeIn.objBag[elem].obj,fd.fadeIn.objBag[elem].op);fd.fadeIn.objBag[elem].op+=10;recall=true}}if(recall){fd.fadeIn.timer=window.setTimeout(fd.fadeIn.fadeIn,50)}else{fd.fadeIn.timer=null}},onUnLoad:function(e){for(elem in fd.fadeIn.objBag){fd.fadeIn.objBag[elem].obj=null}fd.fadeIn.objBag=null}};fd.doDaySuffix={onLoad:function(){var spans=document.getElementsByTagName("span"),txt;for(var z=0,span;span=spans[z];z++){if(!span.className||span.className!="pub-date"){continue}txt=span.innerHTML.match(/^([0-9]+)/);if(!txt.length){continue}txt=txt[0];span.innerHTML=span.innerHTML.replace(txt,txt+fd.doDaySuffix.daySuffix(txt))}},daySuffix:function(d){return d.substr(-(Math.min(d.length,2)))>3&&d.substr(-(Math.min(d.length,2)))<21?"th":["st","nd","rd","th"][Math.min(d%10,4)-1]}};fd.focus={onDomReady:function(){if(!fd.isIE){return }var ids=["comment_name_input","comment_email_input","comment_web_input","message"],elem;for(var i=0;i<ids.length;i++){elem=document.getElementById(ids[i]);if(elem){elem.onfocus=function(e){this.className=this.className+" focused"};elem.onblur=function(e){this.className=this.className.replace("focused","")}}}}};fd.livePreview={helpOn:false,onLoad:function(){if(!document.getElementById("message")){return }function createLPButton(opts){var but=document.createElement("input");but.setAttribute("type","submit");but.setAttribute("id",opts.id);but.setAttribute("name",opts.id);but.onclick=opts.onclick;but.className="button";but.value=opts.value;but.title=opts.title||"";return but}var cookieEnabled=fd.cookie.cookieEnabled(),hook=document.getElementById("submit-bar"),cbox=document.getElementById("forget");if(cookieEnabled){var draftButton=createLPButton({title:"Save a draft of the current comment",id:"draftbutton",onclick:fd.livePreview.saveDraft,value:"Save draft"}),deleteButton=createLPButton({title:"",id:"deletebutton",onclick:fd.livePreview.deleteDraftWrapper,value:"Clear draft"}),saveButton=hook.getElementsByTagName("input")[0];if(saveButton.value.toLowerCase()=="save"){saveButton.onclick=fd.livePreview.deleteDraft}}var quoteButton=createLPButton({title:"Add any selected text as a quotation",id:"quotebutton",onclick:fd.stopEvent,value:"Quote"});quoteButton.onmousedown=fd.livePreview.quoteText;if(cookieEnabled){cbox.parentNode.insertBefore(draftButton,cbox);cbox.parentNode.insertBefore(document.createTextNode(" "),cbox);cbox.parentNode.insertBefore(deleteButton,cbox);cbox.parentNode.insertBefore(document.createTextNode(" "),cbox)}cbox.parentNode.insertBefore(quoteButton,cbox);cbox.parentNode.insertBefore(document.createTextNode(" "),cbox);if(cookieEnabled){setTimeout(fd.livePreview.loadDraft,50)}fd.livePreview.createButtonInfo()},quoteText:function(e){var txt="";if(window.getSelection){txt=window.getSelection()}else{if(document.getSelection){txt=document.getSelection()}else{if(document.selection){txt=document.selection.createRange().text}}}if(!txt||String(txt).length==0){return fd.stopEvent(e)}txt=String(txt).replace("\r\n","").replace("\n","");document.getElementById("message").value=document.getElementById("message").value+"\n\nbq. "+txt+"\n";return fd.stopEvent(e)},nameCookie:function(){var loc=window.location+" ";loc=loc.replace("#cpreview","","i");loc=loc.replace("http://www.frequency-decoder.com/","","i");loc=loc.replace("/","_","ig");loc=loc.replace(" ","","ig");if(loc.charAt(loc.length)=="_"){loc=loc.substr(0,loc.length-1)}return loc},saveDraft:function(){var loc=fd.livePreview.nameCookie(),val=document.getElementById("message").value,setCookie=true,deleteButton=document.getElementById("deletebutton");if(val==""){return false}if(escape(val).length>2000){setCookie=confirm("Your message contains more characters than can be safely saved in a cookie; therefore, some of the message may be lost when saved as a draft.\n\n Do you wish to save the draft anyway?")}if(setCookie){fd.cookie.createCookie(loc,escape(val),14);if(escape(val).length<2001){alert("A draft of your message has been saved for 14 days")}deleteButton.className="button"}return false},deleteDraftWrapper:function(){fd.livePreview.deleteDraft();return false},deleteDraft:function(){var loc=fd.livePreview.nameCookie(),deleteButton=document.getElementById("deletebutton");fd.cookie.createCookie(loc,"",-1);deleteButton.className="button opaque"},loadDraft:function(onload){if(document.getElementById("message").value){return }var loc=fd.livePreview.nameCookie(),draft=fd.cookie.readCookie(loc),deleteButton=document.getElementById("deletebutton");if(draft!=null){document.getElementById("message").value=unescape(draft);deleteButton.className="button"}else{deleteButton.className="button opaque"}},createButtonInfo:function(){var hook=document.getElementById("submit-bar"),div=document.createElement("div"),p=document.createElement("p"),a=document.createElement("a"),inner=document.createElement("div");div.id="button-help";p.className="comments-closed";p.style.marginTop="18px";a.href="#button-help";a.className="no-scroll comment-leadin no-marge";a.id="button-help-link";a.appendChild(document.createTextNode("What are these fandangled buttons?"));p.appendChild(a);hook.appendChild(p);a.onclick=function(e){if(fd.livePreview.helpOn){document.getElementById("button-help").style.display="none";this.innerHTML="What are these fandangled buttons?"}else{document.getElementById("button-help").style.display="block";this.innerHTML="Hide the button explanation please\u2026"}fd.livePreview.helpOn=!fd.livePreview.helpOn;return false};inner.innerHTML=(fd.cookie.cookieEnabled())?'<p class="comment-leadin no-marge">The <strong>Save Draft</strong> button will save a draft of your comment for 14 days (as a cookie). Once saved, the comment box will be automatically populated with the saved draft every time you revisit this page. Naturally, the <strong>Clear draft</strong> button clears any draft previously saved for the current page.</p><p class="comment-leadin">The <strong>Quote</strong> button enables you to highlight on-screen text and, once the button is clicked, add this text to your comment as a Textile formatted <code>blockquote</code>.</p>':'<p class="comment-leadin no-marge">The <strong>Quote</strong> button enables you to highlight on-screen text and, once the button is clicked, add this text to your comment as a Textile formatted <code>blockquote</code>.</p>';div.appendChild(inner);hook.parentNode.parentNode.appendChild(div);div.style.display="none"}};fd.cookie={enabled:null,cookieEnabled:function(){if(fd.cookie.enabled!=null){return fd.cookie.enabled}var cookieEnabled=(navigator.cookieEnabled)?true:false;if(typeof navigator.cookieEnabled=="undefined"&&!cookieEnabled){document.cookie="testcookie";cookieEnabled=(document.cookie=="testcookie")?true:false;document.cookie=""}fd.cookie.enabled=cookieEnabled;return cookieEnabled},createCookie:function(name,value,days){if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires="; expires="+date.toGMTString()}else{expires=""}document.cookie=name+"="+value+expires+"; path=/"},readCookie:function(name){var nameEQ=name+"=";var ca=document.cookie.split(";");for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==" "){c=c.substring(1,c.length)}if(c.indexOf(nameEQ)==0){return c.substring(nameEQ.length,c.length)}}return null}};fd.tagMullet={sortedTags:[],onLoad:function(){if(!("fdSliderController" in window)){return }var wrap=document.getElementById("tagMullet");if(!wrap){return }var reg=/tagSize([0-9]{1,3})/,tagObj={},links=wrap.getElementsByTagName("a"),arr=[],size;for(var i=0,lnk;lnk=links[i];i++){size=lnk.className.match(reg);if(!size||!size.length){continue}size=parseInt(size[1])||0;lnk.className="";lnk.style.fontSize="20px";lnk.title="Tag frequency: "+size;if(!(size in tagObj)){tagObj[size]=[];arr.push(parseInt(size))}tagObj[size].push(lnk)}i=1;while(i<arr.length){var j,v=arr[i];for(j=i-1;j>=0;j--){if(arr[j]<=v){break}arr[j+1]=arr[j]}arr[j+1]=v;i++}for(var z=0;z<arr.length;z++){fd.tagMullet.sortedTags.push(tagObj[arr[z]])}if(fd.tagMullet.sortedTags.length){var frm=document.createElement("form"),p=document.createElement("p"),inp=document.createElement("input"),div=document.createElement("div");frm.method="post";frm.action=window.location;frm.id="tagCloudForm";inp.type="hidden";inp.id=inp.name="tagCloudInput";div.id="sliderInfo";p.appendChild(inp);frm.appendChild(p);wrap.parentNode.insertBefore(frm,wrap.nextSibling);fd.tagMullet.max=fd.tagMullet.sortedTags.length;fdSliderController.addSlider(inp,[0,fd.tagMullet.max],"fd.tagMullet.updateTagCloud","",true,true,false);fdSliderController.sliders.tagCloudInput._callback=fd.tagMullet.updateTagCloud;div.innerHTML='<h3>About the Slider <span class="amp">&amp;</span> Tag-Cloud</h3><p>Move the slider handle from left to right in order to emphasise tags with a higher frequency. Whenever the slider handle is positioned full-left, all tags are highlighted.</p>';inp.parentNode.appendChild(div)}},updateTagCloud:function(){var val=document.getElementById("tagCloudInput").value;for(var i=0,tags;tags=fd.tagMullet.sortedTags[i];i++){var opc=Math.max(10,val==0?100:Math.ceil(100-(Math.abs((i+1)-val)*(100/fd.tagMullet.max))));for(var j=0,tag;tag=tags[j];j++){fd.fadeIn.setOpacity(tag,opc)}}}};fd.switchFontToLucidaGrande={onLoad:function(){if(navigator.userAgent.toLowerCase().indexOf("mac")!=-1||(document.childNodes&&!document.all&&!navigator.taintEnabled)){if(!document.styleSheets){return }try{var rules=(document.styleSheets[0].cssRules||document.styleSheets[0].rules);if(rules&&rules.length){rules[0].style.fontFamily="Lucida Grande, Verdana, Sans-Serif"}}catch(e){}}}};fd.pageLinks={onLoad:function(){var c=document.getElementById("content");if(!c||document.getElementsByTagName("body")[0].id.search(/article/)==-1){return }var lnks=c.getElementsByTagName("a"),aBag={},li=document.createElement("li"),found=false,clone,span,liClone,p,inComment;for(var i=0,lnk;lnk=lnks[i];i++){if(!lnk||lnk.getAttribute("rel")=="nofollow"||lnk.getAttribute("href").search(/file|frequency-decoder|^\/|#/)!=-1){continue}p=lnk;inComment=false;while(p.parentNode){p=p.parentNode;if(p.id=="comment-block-wrapper"||p.id=="footer"){inComment=true;break}}if(inComment){continue}clone=document.createElement("a");clone.title=clone.href=lnk.href;clone.rel="nofollow";clone.appendChild(document.createTextNode(fd.trimString(fd.getInnerText(lnk),32)));span=document.createElement("span");span.appendChild(document.createTextNode(fd.trimString(String(clone.href),37)));clone.appendChild(document.createElement("br"));clone.appendChild(span);liClone=li.cloneNode(true);liClone.appendChild(clone);aBag[lnk.href]=liClone;found=true;clone=liClone=span=null}if(found){var h3=document.createElement("h3"),ul=document.createElement("ul"),sidebar=document.getElementById("sidebar"),obj;h3.appendChild(document.createTextNode("External Article Links"));ul.className="posts article-links";for(obj in aBag){ul.appendChild(aBag[obj])}sidebar.appendChild(h3);sidebar.appendChild(ul);h3=ul=aBag=null}}};fd.tween=function(){this.curr=0;this.setTo(0);this.callback=null};fd.tween.prototype.setTo=function(f){this.minValue=this.curr;this.maxValue=f;this.totalSteps=30;this.actualStep=0};fd.tween.prototype.getNextValue=function(){this.curr=(this.actualStep++==this.totalSteps)?this.maxValue:this.easeInOut(this.minValue,this.maxValue,this.totalSteps,this.actualStep,0.6);return this.curr};fd.tween.prototype.easeInOut=function(minValue,maxValue,totalSteps,actualStep,powr){return Math.ceil(minValue+(Math.pow(((1/totalSteps)*actualStep),powr)*(maxValue-minValue)))};fd.liveSearch={defaultText:"Search: type, then enter",originalText:"Search: type, then enter",timer:null,inp:null,frm:null,oXMLHttpRequest:null,scaf1:null,scaf2:null,resize:new fd.tween(),fade:new fd.tween(),txt:"",onLoad:function(){var frm=document.getElementById("livesearch_form");if(!frm){return }fd.addCssFile("search.css");fd.liveSearch.frm=frm;fd.liveSearch.inp=document.getElementById("livesearch_text");fd.liveSearch.inp.setAttribute("autocomplete","off");fd.liveSearch.inp.value=!fd.liveSearch.inp.value.trim()||fd.liveSearch.inp.value==fd.liveSearch.originalText?fd.liveSearch.defaultText:fd.liveSearch.inp.value;fd.liveSearch.inp.onfocus=fd.liveSearch.onFocus;fd.liveSearch.inp.onblur=fd.liveSearch.onBlur;fd.liveSearch.frm.onsubmit=fd.liveSearch.startSearch;frm=null},onFocus:function(){if(this.value==fd.liveSearch.defaultText){this.value=""}try{this.select()}catch(err){}},onBlur:function(){if(this.value==""){this.value=fd.liveSearch.defaultText}},animateFade:function(){fd.fadeIn.setOpacity(fd.liveSearch.scaf2,Math.round(fd.liveSearch.fade.getNextValue()));if(fd.liveSearch.fade.curr==fd.liveSearch.fade.maxValue){fd.liveSearch.fadeTimer=null;fd.fadeIn.setOpacity(fd.liveSearch.scaf2,fd.liveSearch.fade.maxValue);if(fd.liveSearch.fade.callback!=null){fd.liveSearch.fade.callback()}fd.liveSearch.fade.callback=null}else{fd.liveSearch.fadeTimer=setTimeout(fd.liveSearch.animateFade,50)}},animateResize:function(){fd.liveSearch.scaf1.style.height=Math.round(fd.liveSearch.resize.getNextValue())+"px";if(fd.liveSearch.resize.curr==fd.liveSearch.resize.maxValue){fd.liveSearch.resizeTimer=null;fd.liveSearch.scaf1.style.height=Math.ceil(fd.liveSearch.resize.maxValue)+"px";if(fd.liveSearch.resize.callback!=null){fd.liveSearch.resize.callback()}fd.liveSearch.resize.callback=null}else{fd.liveSearch.resizeTimer=setTimeout(fd.liveSearch.animateResize,50)}},startSearch:function(){if(fd.liveSearch.inp.value==""&&fd.liveSearch.resize.curr!=0){fd.liveSearch.inp.style.display="none";fd.liveSearch.fade.setTo(0);fd.liveSearch.fade.callback=function(){fd.liveSearch.resize.setTo(0);fd.liveSearch.txt="";fd.liveSearch.resize.callback=function(){fd.liveSearch.inp.value=fd.liveSearch.defaultText;fd.liveSearch.inp.style.display="";fd.liveSearch.inp.blur()};fd.liveSearch.animateResize()};fd.liveSearch.animateFade();return false}if(fd.liveSearch.inp.value==""||fd.liveSearch.inp.value.length<4||fd.liveSearch.inp.value==fd.liveSearch.txt){return false}fd.liveSearch.txt=fd.liveSearch.inp.value;fd.liveSearch.inp.style.display="none";if(document.getElementById("search-results")){fd.liveSearch.fade.setTo(0);fd.liveSearch.fade.callback=fd.liveSearch.search;fd.liveSearch.animateFade();return false}fd.liveSearch.search();return false},search:function(){fd.liveSearch.oXMLHttpRequest=new XMLHttpRequest;fd.liveSearch.oXMLHttpRequest.open("POST",window.location,true);fd.liveSearch.oXMLHttpRequest.onreadystatechange=fd.liveSearch.rsc;fd.liveSearch.oXMLHttpRequest.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");fd.liveSearch.oXMLHttpRequest.send("q="+encodeURI(fd.liveSearch.inp.value))},removeResults:function(e){if(document.getElementById("search-results")){fd.liveSearch.txt="";fd.liveSearch.fade.setTo(0);fd.liveSearch.resize.setTo(0);fd.liveSearch.fade.callback=fd.liveSearch.animateResize;fd.liveSearch.animateFade()}return false},rsc:function(){if(fd.liveSearch.oXMLHttpRequest.readyState==XMLHttpRequest.DONE){fd.liveSearch.resizeTimer=fd.liveSearch.fadeTimer=null;var callback=fd.liveSearch.oXMLHttpRequest.responseText,div=document.createElement("div"),body=document.body;if(!document.getElementById("search-results")){fd.liveSearch.scaf1=div.cloneNode(false);fd.liveSearch.scaf1.id="search-results";fd.liveSearch.scaf2=div.cloneNode(false);fd.liveSearch.scaf2.className="h-doc";fd.fadeIn.setOpacity(fd.liveSearch.scaf2,0);fd.liveSearch.scaf1.appendChild(fd.liveSearch.scaf2)}fd.liveSearch.scaf2.innerHTML=callback;var clone=fd.liveSearch.scaf1.cloneNode(true);clone.id="search-results-clone";clone.style.height="auto";if(!document.getElementById("search-results")){fd.liveSearch.scaf1.style.display="none";fd.liveSearch.scaf1.style.height="0px";fd.liveSearch.scaf1.style.display="";body.insertBefore(fd.liveSearch.scaf1,body.firstChild)}body.insertBefore(clone,body.firstChild);fd.liveSearch.resize.setTo(clone.offsetHeight);fd.liveSearch.fade.setTo(100);fd.liveSearch.resize.callback=function(){fd.liveSearch.inp.style.display="";fd.liveSearch.animateFade()};fd.liveSearch.animateResize();body.removeChild(clone);clone=body=div=null}}};fd.trimString=function(str,maxLen){str=str.trim();if(str.length<=maxLen){return str}if(arguments.length==3){return str.substr(0,maxLen)+"\u2026"}else{var len=Math.round((maxLen-3)/2);return str.substr(0,len)+" \u2026 "+str.substr(str.length-len,str.length)}};window.onload=fd.onLoad;window.onunload=function(){fd.onUnload()};window.onresize=function(){fd.onResize()};